package source;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.microedition.io.ConnectionNotFoundException;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;

/**
 * @author Ferry
 */
public class mainMidlet extends MIDlet {

    Display display;

    public mainMidlet(){
        display = Display.getDisplay(this);
    }

    public void startApp() {
        mainCanvas mc = new mainCanvas(this);
        display.setCurrent(mc);
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
       
        try {
            String alamat = "http://mobville.mobi";
            platformRequest(alamat);
        } catch (ConnectionNotFoundException ex) {
            ex.printStackTrace();
        }

               
    }
}
